import java.util.concurrent.TimeUnit;

import io.reactivex.Observable;

public class C31 {
    public static void main(String[] args) {
        Observable.just("Alpha", "Beta", "Gamma", "Delta", "Epsilon")
                  .delay(3, TimeUnit.SECONDS) //指在开头插入一个3秒的延时
                  .subscribe(s -> System.out.println("Received: " + s));
        sleep(5000);
    }

    public static void sleep(long millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
//EOP
